#include "BlocoCarvao.h"

using namespace std;

BlocoCarvao::BlocoCarvao()
{
	dureza = 3;
	setTipo(1);
}
BlocoCarvao::~BlocoCarvao() {}

void BlocoCarvao::setDureza(int Dureza)
{ 
	dureza = Dureza; 
}

//virtual
void BlocoCarvao::dec_dureza(Mineiro min)
{ 
	dureza -= min.getLevelPicareta(); 
}
bool BlocoCarvao::verificaGravidade()
{ 
	return FALSE; 
}
void BlocoCarvao::mudaGravidade(int i){ }
int BlocoCarvao::getIteracao() const
{
	return 0;
}
char BlocoCarvao::getFigura(int x) const
{
	char figura[] =
	{ (char)218, (char)196, (char)196, (char)196, (char)191,
	(char)179, (char)178, (char)15, (char)178, (char)179,
	(char)179, (char)15, (char)15, (char)15, (char)179,
	(char)179, (char)178, (char)15, (char)178, (char)179,
	(char)192, (char)196, (char)196, (char)196, (char)217 };
	return figura[x];
}
int	BlocoCarvao::getDureza() const
{
	return dureza;
}